package com.zking.ssm.service;

import com.zking.ssm.model.Order;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IOrderService {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    int insertSelective(Order record);

    @Transactional(readOnly = true)
    Order selectByPrimaryKey(Integer orderId);

    @Transactional(readOnly = true)
    Order selectByPrimaryKeyCascode(Integer orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    @Transactional(readOnly = true)
    Order loadOrder(Integer orderId);
}